const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const studentinfoSchema = new Schema({
    stu_id:{
        type:String,
        unique:true,
        required:true
    },
    stu_name:{
        type:String,
        unique:false,
        required:true
    },
    stu_sex:{
        type:String,
        unique:false,
        required:true
    },
    stu_jg:{
        type:String,
        unique:false,
        required:true
    },
    stu_date:{
        type:String,
        unique:false,
        required:false
    },
    stu_hobby:{
        type:String,
        unique:false,
        required:false
    },
    stu_gbf:{
        type:String
    },
    stu_head_img:{
        type:String
    }
})
const Studentinfos = mongoose.model("studentinfos",studentinfoSchema);
module.exports = Studentinfos;
